/*
**  global.h - globale Definitionen fuer die wbtm-Programme
**  Copyright (C) 1999 Joachim Ott <ott@ardala.han.de>
**
**  This program is free software; you can redistribute it and/or modify
**  it under the terms of the GNU General Public License as published by
**  the Free Software Foundation; either version 2 of the License, or
**  (at your option) any later version.
**
**  This program is distributed in the hope that it will be useful,
**  but WITHOUT ANY WARRANTY; without even the implied warranty of
**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**  GNU General Public License for more details.
**
**  You should have received a copy of the GNU General Public License
**  along with this program; if not, write to the Free Software
**  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**
** $Id: global.h,v 1.1 2000/08/19 14:55:44 ott Exp $
*/

#ifndef h_global
#define h_global

typedef unsigned int	ulong;
typedef unsigned char	unchar;

#define strcasecmp	stricmp
#define strncasecmp	strnicmp

#include <stdlib.h>	/* to get sys_errlist definition */

extern int	getopt ();
extern char *	optarg;

#ifdef __cplusplus

#define __BEGIN_DECLS	extern "C" {
#define __END_DECLS	}

#else

#define __BEGIN_DECLS
#define __END_DECLS

#endif /* __cplusplus */

/*-----------------------------------------------------------------------*/

#define BTM_VERSION	1
#define BTMTIP_VERSION	1

/* Eingabedateien */

#define FN_IN_SPIELE	"aktuell.btm"
#define FN_IN_TIPS	"aktuell.tip"
#define FN_IN_NTIPS	"aktuell.tip"
#define FN_IN_GROUPS	"gruppen.btm"

/* Ausgabedateien */

#define FN_TABLE	"tabelle.txt"
#define FN_GAMES	"spiele.txt"
#define FN_TIPS		"tips.txt"
#define FN_NULL		"nulltips.txt"
#define FN_XREF		"xref.txt"
#define FN_KOPF		"kopf.txt"
#define FN_RANG		"rang.txt"
#define FN_TIPF		"tipfmt.txt"
#define FN_RUECK	"rueck.txt"

#define LINESIZ		256

#define N_TEAMS		18					/* Anzahl Mannschaften */

#define STD_LEN_TIPNAME	30

/*-----------------------------------------------------------------------*/

__BEGIN_DECLS


__END_DECLS

/*-----------------------------------------------------------------------*/

#endif /* h_global */

/* global.h */
